package com.lb.shopguide;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.lb.shopguide.constants.AppConstant;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;


public class AppRegister extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		final IWXAPI msgApi = WXAPIFactory.createWXAPI(context, AppConstant.WECHAT_APP_ID);
		msgApi.registerApp(AppConstant.WECHAT_APP_ID);

	}
}
